package com.ruoyi.project.system.activity.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 新闻对象 activity
 * 
 * @author f_baisi
 * @date 2020-07-29
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private String id;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String name;

    /** 开始时间 */
    private Date startTime;

    /** 结束时间 */
    private Date endTime;

    /** 封面 */
    @Excel(name = "封面")
    private String mainUrl;

    /** 简介 */
    @Excel(name = "简介")
    private String object;

    /** 详情 */
    private String details;

    /** 作者 */
    @Excel(name = "作者")
    private String creator;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Date created;

    /** 新闻分类主键ID */
    @Excel(name = "新闻分类主键ID")
    private String typeId;

    /** 是否首页展示活动咨询 0：否 1：是 */
    @Excel(name = "是否首页展示活动咨询 0：否 1：是")
    private Integer isShow;

    /** 排序 正序 */
    @Excel(name = "排序 正序")
    private Integer sort;


    public void setId(String id) 
    {
        this.id = id;
    }
    public String getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }
    public String getName() 
    {
        return name;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }
    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }
    public Date getEndTime() 
    {
        return endTime;
    }

    public void setMainUrl(String mainUrl) 
    {
        this.mainUrl = mainUrl;
    }
    public String getMainUrl() 
    {
        return mainUrl;
    }

    public void setObject(String object) 
    {
        this.object = object;
    }
    public String getObject() 
    {
        return object;
    }

    public void setDetails(String details) 
    {
        this.details = details;
    }
    public String getDetails() 
    {
        return details;
    }

    public String getCreator() {
        return creator;
    }
    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreated() {
        return created;
    }
    public void setCreated(Date created) {
        this.created = created;
    }

    public String getTypeId() {
        return typeId;
    }
    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public Integer getIsShow() {
        return isShow;
    }
    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    public Integer getSort() {
        return sort;
    }
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("mainUrl", getMainUrl())
            .append("object", getObject())
            .append("details", getDetails())
            .append("creator", getCreator())
            .append("created", getCreated())
            .append("typeId", getTypeId())
            .append("isShow", getIsShow())
            .append("sort", getSort())
            .toString();
    }
}
